<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/13
 * Time: 15:51
 */

if (!defined('IN_IA')) {
    exit('Access Denied');
}

class Setting_MxShopPage extends WebPage {

    public function main(){

        global $_W,$_GPC;
        $id = intval($_GPC['id']);

        if(empty($id)){
            show_json(0,'参数有误！');
        }
        $platform = pdo_fetch("SELECT * FROM " . tablename('mx_shop_platform') . " WHERE platformid=:platformid", array('platformid'=>$id));

        if ($_W['ispost']) {

            $data = array();

            plog('platform.manage.setting', '更新平台基本设置成功！');

            show_json(1, array('url'=>webUrl('platform')));
        }

        include $this->template();

    }

}
